-- GENERATED SPELL FOR [Deep Crawler] --


function spell0_30279(pUnit, Event) --@Fatal Sting,n/a--
pUnit:FullCastSpellOnTarget(56581,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30279', 12000, 1)
end

function spell1_30279(pUnit, Event) --@Fatal Sting,n/a--
pUnit:FullCastSpellOnTarget(59109,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30279', 12000, 1)
end

function spell2_30279(pUnit, Event) --@Glutinous Poison,n/a--
pUnit:FullCastSpellOnTarget(56580,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30279', 46000, 1)
end

function spell3_30279(pUnit, Event) --@Glutinous Poison,n/a--
pUnit:FullCastSpellOnTarget(59108,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30279', 46000, 1)
end

function Sorts_30279(pUnit, Event)
local choix_sorts_30279 = math.random(0, 3)
if choix_sorts_30279 == 0 then
pUnit:RegisterEvent('spell0_30279', 1, 1)
end
if choix_sorts_30279 == 1 then
pUnit:RegisterEvent('spell1_30279', 1, 1)
end
if choix_sorts_30279 == 2 then
pUnit:RegisterEvent('spell2_30279', 1, 1)
end
if choix_sorts_30279 == 3 then
pUnit:RegisterEvent('spell3_30279', 1, 1)
end
end

function mob30279_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30279', math.random(1500, 3000), 1)
end

function mob30279_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30279_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30279_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30279, 1, 'mob30279_Action')
RegisterUnitEvent(30279, 2, 'mob30279_Leave')
RegisterUnitEvent(30279, 3, 'mob30279_Kill')
RegisterUnitEvent(30279, 4, 'mob30279_Die')
